"""untitled URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path ,include
from untitled import view

urlpatterns = [
    path('',view.index),
    path('home',view.home),                           #展示信息主页
    path('home/login',view.login,name="login.html"), #主界面，即登录界面
    path('home/inlogin',view.inlogin),                #登录功能,进入主页
    path("home/outlogin", view.outlogin),             #注销登录功能 退出当前管理员

    path('home/select_stu',view.select_stu),          #查询学生信息的路劲，返回学生信息
    path('home/delete',view.delete),                  #删除学生信息的路劲，
    path('home/add',view.add),                        #添加学生信息功能
    path("home/modify",view.modify),                  # 修改学生信息页面
    path("home/update",view.update),                  #完成修改功能，提交到服务器，

    path("home/graph",view.graph),                    #展示图形路劲
    path('home/user',view.user),                      #管理员路径
    path("home/data",view.senddata),                  #发送数据路径
    path('select_user',view.select_user), # 查询用户信息的路劲

]
